home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / UTILITY / XPRO11A.ARJ / XDEMO.BAT < prev    next >
DOS Batch File  |  1991-06-28  |  35KB  |  527 lines

  1. echo off
  2. rem  xdemo.bat  -  Demonstrate "DOS Extensions for Professionals".
  3. rem
  4. rem  
  5. cls
  6. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  7. echo ║                Welcome to "DOS Extensions for Professionals"                ║
  8. echo ║                                                                             ║
  9. echo ║                             The Ten Minute Demo                             ║
  10. echo ║                                                                             ║
  11. echo ╟─────────────────────────────────────────────────────────────────────────────╢
  12. echo ║                                                                             ║
  13. echo ║ This demo covers the basic features of all the utilities found in "DOS      ║
  14. echo ║ Extensions for Professionals".                                              ║
  15. echo ║                                                                             ║
  16. echo ║ Executing this batch file from a hard disk directory containing a copy of   ║
  17. echo ║ the programs and files on the distribution disk will result in              ║
  18. echo ║ significantly faster execution than a floppy-based demo because of the      ║
  19. echo ║ superior performance of your hard drive during disk-intensive operations.   ║
  20. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  21. pause
  22. cls
  23. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  24. echo ║ You must be running XDEMO from your distribution disk or from a copy of     ║
  25. echo ║ your distribution disk on your hard drive.                                  ║
  26. echo ║                                                                             ║
  27. echo ║ If your current directory is NOT set to the distribution disk or to a copy  ║
  28. echo ║ of the distribution disk on your hard drive,                                ║
  29. echo ║                                                                             ║
  30. echo ║    1.  "<CTRL> C" out of this program,                                      ║
  31. echo ║    2.  change to the drive on which the distribution disk is mounted, and   ║
  32. echo ║    3.  restart this program                                                 ║
  33. echo ║                                                                             ║
  34. echo ║  (for example)                                                              ║
  35. echo ║                Strike a key when ready . . . "<CTRL>C"                      ║
  36. echo ║                Terminate batch job (Y/N)?  y                                ║
  37. echo ║                C: A:                                                        ║
  38. echo ║                A: xdemo                                                     ║
  39. echo ║                                                                             ║
  40. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  41. pause
  42. cls
  43. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  44. echo ║ Making directories TEMP and TEMP\SUBDIR and copying files to them.          ║
  45. echo ║                                                                             ║
  46. echo ║ This demo will highlight some major features of each of the programs        ║
  47. echo ║ comprising "DOS Extensions for Professionals".                              ║
  48. echo ║                                                                             ║
  49. echo ║ The programs demonstrated here are:                                         ║
  50. echo ║      XDIR    -  list directories recursively                                ║
  51. echo ║      SEARCH  -  search files for a text string                              ║
  52. echo ║      DIFF    -  display the differences between two files                   ║
  53. echo ║      SPLIT   -  split files into parts                                      ║
  54. echo ║      SUB     -  substitute characters in files                              ║
  55. echo ║      DUMP    -  list the contents of binary files and disk sectors          ║
  56. echo ║      XDEL    -  delete files and directories recursively; secure delete     ║
  57. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  58. rem  Free space in case diskette is filled.
  59. rem *** del x.dat >nul
  60. mkdir temp >nul
  61. copy rev22.old temp >nul
  62. mkdir temp\subdir >nul
  63. dir >temp\subdir\aj_sales
  64. pause
  65. cls
  66. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  67. echo ║ Use XDIR to list the current directory.                                     ║
  68. echo ║                                                                             ║
  69. echo ║                                  XDIR                                       ║
  70. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  71. xdir
  72. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  73. echo ║ Note:                                                                       ║
  74. echo ║     1.  Upper case directory "TEMP"                                         ║
  75. echo ║     2.  Alphabetic order                                                    ║
  76. echo ║     3.  Total bytes and total bytes allocated in foot                       ║
  77. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  78. pause
  79. cls
  80. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  81. echo ║ Make a full listing of the current directory.                               ║
  82. echo ║                                                                             ║
  83. echo ║                              XDIR  /FULL                                    ║
  84. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  85. pause
  86. cls
  87. xdir /full
  88. echo ───────────────────────────────────────────────────────────────────────────────
  89. pause
  90. cls
  91. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  92. echo ║ List the current directory in date order, most recent to oldest.            ║
  93. echo ║                                                                             ║
  94. echo ║                              XDIR  /BYDATE                                  ║
  95. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  96. pause
  97. cls
  98. xdir /bydate
  99. echo ───────────────────────────────────────────────────────────────────────────────
  100. pause
  101. cls
  102. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  103. echo ║ List the current directory by size, largest to smallest.                    ║
  104. echo ║                                                                             ║
  105. echo ║                              XDIR  /BYSIZE                                  ║
  106. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  107. pause
  108. cls
  109. xdir /bysize
  110. echo ───────────────────────────────────────────────────────────────────────────────
  111. pause
  112. cls
  113. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  114. echo ║ Perform a recursive descent through all directories on this disk listing    ║
  115. echo ║ all files along the way.                                                    ║
  116. echo ║                                                                             ║
  117. echo ║                              XDIR  ...                                      ║
  118. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  119. pause
  120. cls
  121. xdir ...
  122. echo ───────────────────────────────────────────────────────────────────────────────
  123. pause
  124. cls
  125. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  126. echo ║ Get the totals at each directory level without any detail by entering:      ║
  127. echo ║                                                                             ║
  128. echo ║                           XDIR  ...  /TOTAL                                 ║
  129. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  130. xdir ... /total
  131. echo ───────────────────────────────────────────────────────────────────────────────
  132. pause
  133. cls
  134. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  135. echo ║ Get just the grand totals without any detail by entering:                   ║
  136. echo ║                                                                             ║
  137. echo ║                           XDIR  ...  /GRANDTOTAL                            ║
  138. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  139. xdir ... /grandtotal
  140. echo ───────────────────────────────────────────────────────────────────────────────
  141. pause
  142. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  143. echo ║ Of course a wildcard would normally be included with this type of search as ║
  144. echo ║ in                                                                          ║
  145. echo ║                           XDIR  ...*.DOC  /GRANDTOTAL                       ║
  146. echo ║                                                                             ║
  147. echo ║ to determine, for instance, how many .DOC files reside on your disk and how ║
  148. echo ║ much total space they take.                                                 ║
  149. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  150. pause
  151. cls
  152. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  153. echo ║ Find a file whose name you cannot remember and whose location you don't     ║
  154. echo ║ know.  You do recall that the file is called "sales-something", or was it   ║
  155. echo ║ "something-sales"?                                                          ║
  156. echo ║                                                                             ║
  157. echo ║ Multiple wildcards and recursive notation "..." allow you to search part of ║
  158. echo ║ or your entire disk.                                                        ║
  159. echo ║                                                                             ║
  160. echo ║                           XDIR  ...*sales*                                  ║
  161. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  162. pause
  163. xdir ...*sales*
  164. echo ───────────────────────────────────────────────────────────────────────────────
  165. pause
  166. cls
  167. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  168. echo ║ Command Modifiers can be shortened to save keystrokes.  "/GRANDTOTAL" can   ║
  169. echo ║ be replaced by "/GRAND" or any other unambiguous contraction.  Ambiguous    ║
  170. echo ║ contractions generate error messages listing all conflicting modifiers.     ║
  171. echo ║ The extreme case, "/", causes all possible Command Modifiers for that       ║
  172. echo ║ command to be listed.                                                       ║
  173. echo ║                                                                             ║
  174. echo ║                                 XDIR  /                                     ║
  175. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  176. pause
  177. xdir /
  178. echo ───────────────────────────────────────────────────────────────────────────────
  179. pause
  180. cls
  181. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  182. echo ║ Text from the last chapter of the last book of the Bible, the 1611 King     ║
  183. echo ║ James Version, will be used to demonstrate several commands in "DOS         ║
  184. echo ║ Extensions for Professionals".                                              ║
  185. echo ║                                                                             ║
  186. echo ║ First, quickly glance at the text as it is scrolled by under control of the ║
  187. echo ║ MORE command.  Note that the text is divided into 21 verses separated by    ║
  188. echo ║ blank lines, and that some words such as "thou" and "shew" and endings such ║
  189. echo ║ as "eth" are archaic and not used in street jive much anymore.  (What is    ║
  190. echo ║ really amazing is how little English has changed in almost 400 years,       ║
  191. echo ║ probably due to the influence of this book.)                                ║
  192. echo ║                                                                             ║
  193. echo ║                             "MORE  < REV22.OLD"       (A DOS command.)      ║
  194. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  195. pause
  196. more < rev22.old
  197. echo ───────────────────────────────────────────────────────────────────────────────
  198. pause
  199. cls
  200. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  201. echo ║ Use SEARCH to find all instances of "thou" in the files REV22.OLD, the 1611 ║
  202. echo ║ version, and in REV22.NEW, a variant with some modern words substituted.    ║
  203. echo ║                                                                             ║
  204. echo ║                         SEARCH  REV22  THOU                                 ║
  205. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  206. search rev22 thou
  207. echo ───────────────────────────────────────────────────────────────────────────────
  208. pause
  209. cls
  210. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  211. echo ║ Use SEARCH to find all instances of "eth" in REV22.OLD.  List the line      ║
  212. echo ║ numbers in which matches occur.  (Don't confuse verse and line numbers!)    ║
  213. echo ║                                                                             ║
  214. echo ║                         SEARCH  REV22.OLD  ETH  /NUMBERS                    ║
  215. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  216. search rev22.old eth /numbers
  217. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  218. echo ║ SEARCH can examine files in multiple directories when called with the       ║
  219. echo ║ recursive notation "...".                                                   ║
  220. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  221. pause
  222. cls
  223. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  224. echo ║ Use DIFF to list all differences between the two files.  Internally,        ║
  225. echo ║ resynchronization requires three identical lines.  The first identical line ║
  226. echo ║ is displayed after each mismatch.                                           ║
  227. echo ║                                                                             ║
  228. echo ║                         DIFF  REV22.OLD  REV22.NEW                          ║
  229. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  230. pause
  231. diff rev22.old rev22.new
  232. echo ───────────────────────────────────────────────────────────────────────────────
  233. pause
  234. cls
  235. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  236. echo ║ Change to the \TEMP directory in order to demonstrate commands using write  ║
  237. echo ║ operations.  Use a copy of REV22.OLD as the source.                         ║
  238. echo ║                                                                             ║
  239. echo ║ SPLIT can divide files into "n" pieces, into pieces "n" lines long, at      ║
  240. echo ║ predetermined lines, or at locations marked by user-chosen search strings.  ║
  241. echo ║                                                                             ║
  242. echo ║ SPLIT rev22.old into 3 equal files.                                         ║
  243. echo ║                                                                             ║
  244. echo ║                        SPLIT  REV22.OLD  /INTO=3                            ║
  245. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  246. cd temp
  247. ..\split rev22.old /into=3
  248. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  249. echo ║ REV22.OLD is divided into three files: REV22.001, REV22.002, and REV22.003. ║
  250. echo ║                                                                             ║
  251. echo ║ View their sizes with XDIR.                                                 ║
  252. echo ║                                                                             ║
  253. echo ║                          XDIR  REV22  /SIZE                                 ║
  254. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  255. pause
  256. ..\xdir rev22 /size
  257. echo ───────────────────────────────────────────────────────────────────────────────
  258. pause
  259. cls
  260. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  261. echo ║ SPLIT REV22.OLD into files 30 lines long and examine with XDIR.             ║
  262. echo ║                                                                             ║
  263. echo ║                        SPLIT  REV22.OLD  /EVERY=30                          ║
  264. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  265. ..\split rev22.old /every=30
  266. ..\xdir rev22 /size
  267. echo ───────────────────────────────────────────────────────────────────────────────
  268. pause
  269. cls
  270. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  271. echo ║ SPLIT can divide files at any predetermined lines using the /at modifier.   ║
  272. echo ║                                                                             ║
  273. echo ║                        SPLIT  FILE.TXT  /AT=10,20,66,138,332...             ║
  274. echo ║                                                                             ║
  275. echo ║                                                                             ║
  276. echo ║ SPLIT can also divide files at locations marked by user-chosen strings.     ║
  277. echo ║ That more complex capability is demonstrated in XDEMO_AD.BAT, a second demo ║
  278. echo ║ covering more advanced techniques.                                          ║
  279. echo ║                                                                             ║
  280. echo ║ You'll find it easier to experiment a little first with the basics of "DOS  ║
  281. echo ║ Extensions for Professionals" before trying XDEMO_AD.                       ║
  282. echo ║                                                                             ║
  283. echo ║ Continuing now with XDEMO...                                                ║
  284. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  285. pause
  286. cls
  287. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  288. echo ║ SUB is a multi-facited utility which can change each line of a target file  ║
  289. echo ║ in many simple or complex ways.  It can remove trailing blanks from lines,  ║
  290. echo ║ pad lines with trailing blanks, delete characters, insert characters, copy  ║
  291. echo ║ text, replace tabs with blanks, and replace blanks with tabs.               ║
  292. echo ║                                                                             ║
  293. echo ║ In this simple example, we will insert 15 blanks at the beginning of each   ║
  294. echo ║ line of REV22.OLD to shift the text an inch and a half to the right         ║
  295. echo ║ allowing room for hole punching the printed document.                       ║
  296. echo ║                                                                             ║
  297. echo ║ If you don't tell SUB where to insert text with the /AT= Command Modifier,  ║
  298. echo ║ it inserts before the first column of each line.                            ║
  299. echo ║                                                                             ║
  300. echo ║ Unless instructed otherwise, SUB makes a backup of the original file giving ║
  301. echo ║ it the extension ".BAK".  In the example below, the backup is REV22.BAK.    ║
  302. echo ║                                                                             ║
  303. echo ║                                                                             ║
  304. echo ║                    SUB  REV22.OLD  /INSERT="               "                ║
  305. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  306. ..\sub rev22.old /insert="               "
  307. echo ───────────────────────────────────────────────────────────────────────────────
  308. pause
  309. cls
  310. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  311. echo ║ The new REV22.OLD is shifted to the right.  (Read fast.)                    ║
  312. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  313. pause
  314. type rev22.old
  315. echo ───────────────────────────────────────────────────────────────────────────────
  316. pause
  317. cls
  318. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  319. echo ║ The DUMP command can display the contents of binary files, directories, and ║
  320. echo ║ disk sectors by direct address.                                             ║
  321. echo ║                                                                             ║
  322. echo ║ DUMP the last sector of the binary file DUMP.EXE                            ║
  323. echo ║                                                                             ║
  324. echo ║                              DUMP  ..\DUMP.EXE  /SECTOR=-1                  ║
  325. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  326. pause
  327. ..\dump ..\dump.exe /sector=-1
  328. echo ───────────────────────────────────────────────────────────────────────────────
  329. pause
  330. cls
  331. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  332. echo ║ DUMP the current directory.                                                 ║
  333. echo ║                                                                             ║
  334. echo ║ Note that deleted entries have a 'σ' as the first character of their names, ║
  335. echo ║ and entries not as yet used are filled with '*'s and zeros.                 ║
  336. echo ║                                                                             ║
  337. echo ║                                 DUMP  .                                     ║
  338. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  339. pause
  340. del rev22.002
  341. ..\dump .
  342. echo ───────────────────────────────────────────────────────────────────────────────
  343. pause
  344. cls
  345. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  346. echo ║ DUMP the boot sector of the current disk.                                   ║
  347. echo ║                                                                             ║
  348. echo ║                               DUMP  /BOOT                                   ║
  349. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  350. pause
  351. ..\dump /boot
  352. echo ───────────────────────────────────────────────────────────────────────────────
  353. pause
  354. cls
  355. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  356. echo ║ The clusters associated with a particular file or with the whole disk can   ║
  357. echo ║ be listed.                                                                  ║
  358. echo ║                                                                             ║
  359. echo ║ DUMP clusters 2 through 19 from the disk's FAT.                             ║
  360. echo ║                                                                             ║
  361. echo ║                              DUMP  /FAT=2,19                                ║
  362. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  363. ..\dump /fat=2,19
  364. echo ───────────────────────────────────────────────────────────────────────────────
  365. pause
  366. cls
  367. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  368. echo ║ DUMP the cluster chain associated with the file REV22.OLD.                  ║
  369. echo ║                                                                             ║
  370. echo ║                          DUMP  REV22.OLD  /CLUSTER                          ║
  371. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  372. ..\dump rev22.old /cluster
  373. echo ───────────────────────────────────────────────────────────────────────────────
  374. pause
  375. echo off
  376. rem  retademo.bat  -  This portion of the xdemo program is inserted into the
  377. rem                   retail version which contains the XDEL command.
  378. cls
  379. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  380. echo ║ XDEL supports secure and recursive (tree) file deletion as well as a number ║
  381. echo ║ of other delete options.                                                    ║
  382. echo ║                                                                             ║
  383. echo ║ Secure deletes involve overwriting the deleted file with random data and/or ║
  384. echo ║ patterns so that it is truly gone after you delete it.  (Ref. help info     ║
  385. echo ║ by entering XDEL -HELP /SECURE /PATTERNS when you are finished with this    ║
  386. echo ║ demo for a more complete discussion.)                                       ║
  387. echo ║                                                                             ║
  388. echo ║ Execute a secure delete on REV22.OLD.                                       ║
  389. echo ║                                                                             ║
  390. echo ║                       XDEL  REV22.OLD  /SECURE  /VERIFY=DISABLED            ║
  391. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  392. ..\xdel rev22.old /secure /verify=disabled >nul
  393. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  394. echo ║ All seven sectors of REV22.OLD were overwritten with the same pattern found ║
  395. echo ║ on newly formated disks.  Inaddition, REV22.OLD's directory entry was       ║
  396. echo ║ zeroed eradicating all history of the file's existence.                     ║
  397. echo ║                                                                             ║
  398. echo ║ Verify by dumping the directory.  Note that all deleted files entries are   ║
  399. echo ║ blanked and zeroed.                                                         ║
  400. echo ║                                                                             ║
  401. echo ║                               DUMP  .                                       ║
  402. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  403. pause
  404. ..\dump .
  405. echo ───────────────────────────────────────────────────────────────────────────────
  406. pause
  407. cls
  408. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  409. echo ║ Change directory up one level and recursively delete the TEMP directory     ║
  410. echo ║ and everything under it.                                                    ║
  411. echo ║                                                                             ║
  412. echo ║ XDEL supports verification on three levels:                                 ║
  413. echo ║             1.  at the initial command level        (the default)           ║
  414. echo ║             2.  for each directory                                          ║
  415. echo ║             3   for each file.                                              ║
  416. echo ║                                                                             ║
  417. echo ║ XDEL defaults to initial verification only.                                 ║
  418. echo ║                                                                             ║
  419. echo ║ ANSWER 'Y' WHEN QUERIED TO SUCCESSFULLY COMPLETE THIS COMMAND.              ║
  420. echo ║                                                                             ║
  421. echo ║ File and directory names will be listed as they are deleted.                ║
  422. echo ║                                                                             ║
  423. echo ║                           XDEL  TEMP...  /LIST=ALL                          ║
  424. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  425. cd ..
  426. xdel temp... /list=all/nopause
  427. echo ───────────────────────────────────────────────────────────────────────────────
  428. pause
  429. echo off
  430. rem  xdemo2.bat  -  The final section of xdemo.bat for "DOS Extensions for
  431. rem                 Professionals".
  432. cls
  433. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  434. echo ║ By now, you may be overwhelmed by the number of utilites found in "DOS      ║
  435. echo ║ Extensions for Professionals" and are wondering how anyone can possibly     ║
  436. echo ║ remember all the Command Modifiers.                                         ║
  437. echo ║                                                                             ║
  438. echo ║ The Built-in Help included with each command is the key to successful day-  ║
  439. echo ║ to-day operation.                                                           ║
  440. echo ║                                                                             ║
  441. echo ║ There are two levels of Built-in command Help.  The first is a top-level    ║
  442. echo ║ overall help.                                                               ║
  443. echo ║                                                                             ║
  444. echo ║     command  -HELP                                                          ║
  445. echo ║                                                                             ║
  446. echo ║ gives a short description of the command and lists all Command Modifiers.   ║
  447. echo ║                                                                             ║
  448. echo ║     command  -HELP  /Command_Modifier...                                    ║
  449. echo ║                                                                             ║
  450. echo ║ gives the second, or more detailed level of Built-in Help.  Details are     ║
  451. echo ║ explained at this level.                                                    ║
  452. echo ║                                                                             ║
  453. echo ║ Demonstrate the top level Built-in Help for the command XDIR.               ║
  454. echo ║                                                                             ║
  455. echo ║     XDIR  -HELP                                                             ║
  456. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  457. pause
  458. cls
  459. xdir -help
  460. echo ───────────────────────────────────────────────────────────────────────────────
  461. pause
  462. cls
  463. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  464. echo ║ Demonstrate the second, more detailed level of Built-in Help.               ║
  465. echo ║                                                                             ║
  466. echo ║ What do /HIDDEN and /READONLY mean in the XDIR command?                     ║
  467. echo ║                                                                             ║
  468. echo ║     XDIR  /HIDDEN  /READONLY  -HELP                                         ║
  469. echo ║                                                                             ║
  470. echo ║ (Note that the order of Command Modifiers doesn't matter.)                  ║
  471. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  472. pause
  473. cls
  474. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  475. echo ║     XDIR  /HIDDEN  /READONLY  -HELP                                         ║
  476. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  477. xdir -help /hidden /readonly
  478. echo ───────────────────────────────────────────────────────────────────────────────
  479. pause
  480. cls
  481. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  482. echo ║ "DOS Extensions for Professionals" also provides two other levels of Built- ║
  483. echo ║ in Help with the program XHELP.                                             ║
  484. echo ║                                                                             ║
  485. echo ║ XHELP gives Top Level documentation for all commands.                       ║
  486. echo ║                                                                             ║
  487. echo ║     XHELP                                                                   ║
  488. echo ║                                                                             ║
  489. echo ║ lists all commands with a brief description.                                ║
  490. echo ║                                                                             ║
  491. echo ║     XHELP  command                                                          ║
  492. echo ║                                                                             ║
  493. echo ║ gives an overview, examples, and sometimes design constraints for a command.║
  494. echo ║                                                                             ║
  495. echo ║ You can print the contents of XHELP (or of any other command) by dumping    ║
  496. echo ║ the help text to a file and printing that file as follows:                  ║
  497. echo ║                                                                             ║
  498. echo ║      "XHELP  -ALL  /NOPAUSE  > X"                                           ║
  499. echo ║       COPY  X  PRN                                                          ║
  500. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  501. pause
  502. cls
  503. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  504. echo ║ This concludes the Ten Minute Demo of "DOS Extensions for Professionals".   ║
  505. echo ║                                                                             ║
  506. echo ║ If you have not yet done so, you may want to print XREADME on your printer  ║
  507. echo ║                                                                             ║
  508. echo ║      COPY  XREADME  PRN                                                     ║
  509. echo ║                                                                             ║
  510. echo ║ XREADME explains how to install "DOS Extensions for Professionals" on your  ║
  511. echo ║ hard disk.                                                                  ║
  512. echo ║                                                                             ║
  513. echo ║                                                                             ║
  514. echo ║ Gain experience with "DOS Extensions for Professionals" by using the        ║
  515. echo ║ simpler commands and Command Modifiers first.                               ║
  516. echo ║                                                                             ║
  517. echo ║ Extend your knowledge by reviewing the Built-in Help a command-at-a-time.   ║
  518. echo ║ You may not remember all the details, but you'll know where to turn for     ║
  519. echo ║ help.                                                                       ║
  520. echo ║                                                                             ║
  521. echo ║ After a little practice, review XDEMO_AD for advanced concepts.             ║
  522. echo ║                                                                             ║
  523. echo ║ Good luck and good computing!                                               ║
  524. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  525. rem  Re-establish junk file to reserve space on diskette.
  526. rem *** copy /b split.exe+search.exe x.dat >nul
  527.